package com.ssm.blog.pojo;

public class Photo {
    private Integer id;
    private String imgUrl;//图片地址
    private Integer userId;//用户id
    //getter/setter略
    public Photo() {

    }
    public Photo(String imgUrl,Integer userId) {
        this.imgUrl = imgUrl;
        this.userId=userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
